<!DOCTYPE html>
<html lang="zh">
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7">
	<title>系统管理员后台 - 家校互动系统</title>
	<link rel="shortcut icon" href="favicon.ico" />
	<link href="__TMPL__css/alice.css" rel="stylesheet" type="text/css" />
	<link href="__TMPL__css/style.css" rel="stylesheet" type="text/css" />
	<script src="__TMPL__js/jquery.min.js"></script>
	<script src="__TMPL__js/head.js"></script>
    <script>
	function show(t)
	{
		if (t==1)
		{
			$('.addex').show();
			$('.selex').hide();
		}
		else
		{	
			$('.addex').hide();
			$('.selex').show();
		}
	}
	$(document).ready(function(e) {
	$("#level_id").change(function ()
	{
		 lv_id = $('#level_id').find('option:selected').val();
		 term = $('#term').find('option:selected').val();
		 changeexam(lv_id,term);
		 
	});
	$("#term").change(function ()
	{
		 lv_id = $('#level_id').find('option:selected').val();
		 term = $('#term').find('option:selected').val();
		 changeexam(lv_id,term);
		 
	});
	});
	function changeexam(lv_id,term)
	{
		$("#exam_id").empty();
		$("#exam_id").append("<option value=''>选择考试</option>");
		$.getJSON("__URL__/loadexam/lv_id/"+lv_id+"/term/"+term,function(result){
		$.each(result, function(i, field){
		  $("#exam_id").append("<option value='"+field['id']+"'>"+field['exam_name']+"</option>");
		});
	  });
	}
	</script>
	<!--[if lt IE 9]>
	<script src="__TMPL__js/html5.js"></script>
	<![endif]-->
</head> 
<body onload="iframe_height()">
<div id="bodyheight"><!-- 设定iframe框架 --> 

<div style="width:100%">
	<a class="btn_back" href="__URL__/nav" style="width:20%">学生成绩</a> <!-- 当前位置 返回按钮 -->
</div>


	<!-- 内容框架开始 -->
	<div class="main padd6">
		<div class="tab_main clear">
			<a href="__URL__/score_man">成绩管理</a>
			<a href="__URL__/score_import" class="cur">导入成绩</a>
		</div>
	
		<div class="realmain padd22 clear">
		
			<!-- 列表内容开始 -->
			<form name="content_form" id="content_form" action="__URL__/score_doimport" method="post" enctype="multipart/form-data">
            
			<fieldset>

			<ul class="content setpcon">
				<li>
					<div class="setpico">1</div>
					<div class="setpcon" style="padding-top:30px">
					<div class="ui-form-item">
						<label  class="ui-label">选择班级：</label>
						<select name="class_id" id="class_id" >
                            <option value="" >选择班级</option>
                             <volist name="classlist" id="vo">
                            <option value="{$vo.id}" <eq name="vo.id" value="$class_id">selected</eq> >{$vo.class_name}</option>
                            </volist>
                        </select>
						</div>	
                      <div class="ui-form-item">
						<label  class="ui-label">选择年级：</label>
						<span class="ui-td">
						<select name="level_id" id="level_id">
						  <option value="">选择年级</option>
						  <volist name="levellist" id="vo">
						    <option value="{$vo.id}">{$vo.level_name}</option>
					      </volist>
					    </select>
						</span></div>
                      <div class="ui-form-item">
						<label  class="ui-label">选择学期：</label>
						<span class="ui-td">
						<select name="term" id="term">
						  <option value="">选择学期</option>
						  <option value="1">上学期</option>
						  <option value="2">下学期</option>
					    </select>
						</span></div>
                      <div class="ui-form-item">
						<label  class="ui-label">新增考试：</label>
						<span class="ui-td">
						<input name="add" type="radio" id="radio" value="1" checked onClick="show(1)">
是 
							    &nbsp; &nbsp;
                                <input type="radio" name="add" id="radio" value="2" onClick="show(2)">
                        否</span></div>
                      <div class="ui-form-item selex" style="display:none">
						<label  class="ui-label">选择考试：</label>
						<span class="ui-td">
						<select name="exam_id" id="exam_id">
						  <option value="">选择考试</option>
					    </select>
						</span></div>   
						
						
						<div class="ui-form-item addex">
<<<<<<< HEAD
							<label  class="ui-label">考试时间：</label><input class="ui-input padd3  inputdatetime" type="text" name="examtime"><span class="ui-form-other">如 2013-08-15</span>
=======
							<label  class="ui-label">考试时间：</label><input class="ui-input padd3  inputdate" type="text" name="examtime"><span class="ui-form-other">如 2013-08-15</span>
>>>>>>> 4d10520e2d379bccf159d357fbc2e5519f23428b
						</div>
						<div class="ui-form-item addex">
							<label  class="ui-label">考试名称：</label><input class="ui-input padd3" type="text" name="examname"><span class="ui-form-other">如 2013年08月期末考试</span>
						</div>
						
						
					</div>
				</li>
				<li>
					<div class="setpico">2</div>
					<div class="setpcon">

						<p style="padding-left:95px;height:40px;line-height:40px;margin-bottom:10px">建议使用系统为您提供的规范模板。还没有用户模板吗？<a href="__URL__/scoretemplate/class_id/{$class_id}" style="color:red;font-weight:bold">点击这里下载</a></p>
						
						<div class="ui-form-item">
						<label  class="ui-label">上传附件：</label>
						<input type="file" name="uploadfile" class="ui-fileinput" style="margin-top:10px;">
						</div>

						<div class="submitdiv" style="padding-left:90px">
							<input type="submit" class="ui-button ui-button-mgreen" value="提交导入">
						</div>

					</div>
		
				</li>
			</ul>
			
			</fieldset>
			</form>
			<!-- 列表内容结束 -->
			
		</div>
	</div>
	<!-- 内容框架结束 -->
</div>

<iframe width='0' id='top_src' height='0' src=''></iframe>
<include file="Public:foot" />
</body>
</html>